Format

The format of the tic-mark labels can be set with the set format command. The default format for both axes is ''%g'', but other formats such as ''%.2f'' or ''%3.0fm'' are often desirable. Anything accepted by printf when given a double precision number, and then accepted by the terminal, will work. In particular, the formats f, e, and g will work, and the d, o, x, c, s, and u formats will not work.

Syntax:

        set format {<axes>} {"<format-string>"}
        show format

where <axes> is either x, y, z, xy, or nothing (which is the same as xy). The length of the string representing a ticmark (after formatting with printf) is restricted to 100 characters. If the format string is omitted, the format will be returned to the default ''%g''. For LaTeX users, the format ''$%g$'' is often desirable. If the empty string '''' is used, no label will be plotted with each tic, though the tic mark will still be plotted. To eliminate all tic marks, use set noxtics or set noytics.

See also set xtics and set ytics for more control over tic labels.